package com.lfs.adapter.config;

import com.lfs.common.utils.StringUtils;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@Component
public class PlatformTypeConfig {

    /**
     * 默认的平台类型
     */
    @Value("${default-platform-type:pdd}")
    private String defaultPlatformType;


    public String getPlatformType(String platformType) {
        if(StringUtils.isEmpty(platformType)) {
            return defaultPlatformType;
        }
        return defaultPlatformType;
    }

}
